﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebDemo._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Linux下 测试.NET 跑MYSQL</title>
    <link href="style/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="window">
        <br />
        <br />
        <br />
        <div>
            <form method="post" action="default.aspx?ty=insert">
            <input type="submit" name="btn_insert" value="insert" />
            <br />
            <br />
            </form>
            <form method="post" action="default.aspx?ty=update">
            <input type="submit" name="btn_update" value="update" />
            <br />
            <br />
            </form>
            <form method="post" action="default.aspx?ty=delete">
            <input type="submit" name="btn_delete" value="delete" />
            <br />
            <br />
            </form>
        </div>
        <div>
            <table width="100%" border="1px">
                <% foreach (var item in SelectList)
                   { %>
                <tr>
                    <th style="width: 100px;">
                        ID
                    </th>
                    <td style="width: 100px;">
                        <%= item["typeid"] %>
                    </td>
                    <th style="width: 100px;">
                        Name
                    </th>
                    <td>
                        <%= item["typename"] %>
                    </td>
                </tr>
                <%} %>
            </table>
        </div>
    </div>
</body>
</html>
